﻿#ifndef XPLAY_H
#define XPLAY_H

#include <QThread>

namespace HeaderMedia {

class XPlay : public QThread {

 Q_OBJECT

 public:
  static XPlay &getInstance() {
    static XPlay play;
    return play;
  }
  ~XPlay();

  void run();

  void myStart();
  void myStop();

 protected:
  XPlay();

 private:
  bool xIsStart;
};

} // namespace HeaderMedia

#endif // XPLAY_H
